<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


    <script>
        'use strict'

        var age = 3;
        if (age>3){
            alert("haha");
        }else if (age>5){
            alert("kuwa~");
        }else {
            alert("kuwa~");
        }

        while(age<100){
            age = age+1;
            console.log(age)
        }

        do{
            age = age+1;
            console.log(age)
        }while(age<100)

        for (let i = 0; i <100 ; i++) {
            console.log(i)
        }

        var age = [12,3,12,3,12,3,12,31,23,123]

        age.forEach(function (value) {
            console.log(value)
        })

        //for (var index in object){}
        for(var num in age){
            console.log(age[num])
        }

        var arr = [3,4,5]
        for (var x of arr){
            console.log(x)
        }

    </script>

</head>
<body>

</body>
</html>